﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="First_FirstOrDefault_Last_LastOrDefault_ElementAt_ElementAtOrDefault、Contains、Any、All、Count、LongCount、Sum、Min、Max、Average、Aggregate、Cast、DefaultIfEmpty、SequenceEqual、OfType、ToArray.aspx.cs" Inherits="_35newpart_Linq_First_FirstOrDefault_Last_LastOrDefault_ElementAt_ElementAtOrDefault_Contains_Any_All_Count_LongCount_Sum_Min_Max_Average_Aggregate_Cast_DefaultIfEmpty_SequenceEqual_OfType_ToArray" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>First_FirstOrDefault_Last_LastOrDefault_ElementAt_ElementAtOrDefault、Contains、Any、All、Count、LongCount、Sum、Min、Max、Average、Aggregate、Cast、DefaultIfEmpty、SequenceEqual、OfType、ToArray.aspx.cs" Inherits="_35newpart_Linq_First_FirstOrDefault_Last_LastOrDefault_ElementAt_ElementAtOrDefault_Contains_Any_All_Count_LongCount_Sum_Min_Max_Average_Aggregate_Cast_DefaultIfEmpty_SequenceEqual_OfType_ToArray‘ToList、ToDictionary.aspx</title>
    <style type="text/css">


.postbody a
{
	color: #1D58D1;
}


a
{
	color: #223355;
	text-decoration: none;
}

    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <a href="http://www.cnblogs.com/webabcd/archive/2007/10/29/941007.html" 
            target="_blank">[索引页]</a><a 
            href="http://www.cnblogs.com/Files/webabcd/VS2008.rar"><br />
        [源码下载]<br />
        </a>
        <br />
        <br />
        <div align="center">
            <font face="Verdana">步步为营VS 2008 + .NET 3.5(7) - 
            LINQ查询操作符之First、FirstOrDefault、Last、LastOrDefault、ElementAt、ElementAtOrDefault、Contains、Any、All、Count、LongCount、Sum、Min、Max、Average、Aggregate、Cast、DefaultIfEmpty、SequenceEqual、OfType、ToArray、ToList、ToDictionary</font></div>
        <br />
        <br />
        作者：<a href="http://webabcd.cnblogs.com/" target="_blank">webabcd</a><br />
        <br />
        <br />
        介绍<br />
        &nbsp;&nbsp;&nbsp; ·First<font face="Verdana">&nbsp;- 返回集合中的第一个元素；不延迟</font><br />
        &nbsp;&nbsp;&nbsp; ·FirstOrDefault<font face="Verdana">&nbsp;- 返回集合中的第一个元素（如果没有则返回默认值）；不延迟</font><br />
        &nbsp;&nbsp;&nbsp; ·Last<font face="Verdana">&nbsp;- 返回集合中的最后一个元素；不延迟</font><br />
        &nbsp;&nbsp;&nbsp; ·LastOrDefault<font face="Verdana">&nbsp;- 返回集合中的最后一个元素（如果没有则返回默认值）</font><br />
        &nbsp;&nbsp;&nbsp; ·ElementAt<font face="Verdana">&nbsp;- 返回集合中指定索引的元素；不延迟</font><br />
        &nbsp;&nbsp;&nbsp; ·ElementAtOrDefault<font face="Verdana">&nbsp;- 返回集合中指定索引的元素（如果没有则返回默认值）；不延迟</font><br />
        &nbsp;&nbsp;&nbsp; ·Contains<font face="Verdana">&nbsp;- 判断集合中是否包含有某一元素；不延迟</font><br />
        &nbsp;&nbsp;&nbsp; ·Any<font face="Verdana">&nbsp;- 判断集合中是否有元素满足某一条件；不延迟</font><br />
        &nbsp;&nbsp;&nbsp; ·All<font face="Verdana">&nbsp;- 判断集合中是否所有元素都满足某一条件；不延迟</font><br />
        &nbsp;&nbsp;&nbsp; ·Count<font face="Verdana">&nbsp;- 返回集合中的元素个数，返回int；不延迟</font><br />
        &nbsp;&nbsp;&nbsp; ·LongCount<font face="Verdana">&nbsp;- 返回集合中的元素个数，返回long；不延迟</font><br />
        &nbsp;&nbsp;&nbsp; ·Sum<font face="Verdana">&nbsp;- 集合应为数字类型集合，求其和；不延迟</font><br />
        &nbsp;&nbsp;&nbsp; ·Min<font face="Verdana">&nbsp;- 返回集合的最小值；不延迟</font><br />
        &nbsp;&nbsp;&nbsp; ·Max<font face="Verdana">&nbsp;- 返回集合的最大值；不延迟</font><br />
        &nbsp;&nbsp;&nbsp; ·Average<font face="Verdana">&nbsp;- 集合应为数字类型集合，求其平均值；不延迟</font><br />
        &nbsp;&nbsp;&nbsp; ·Aggregate<font face="Verdana">&nbsp;- 根据输入的表达式获取一个聚合值；不延迟</font><br />
        &nbsp;&nbsp;&nbsp; ·Cast<font face="Verdana">&nbsp;- 将集合转换为强类型集合；延迟</font><br />
        &nbsp;&nbsp;&nbsp; ·DefaultIfEmpty<font face="Verdana">&nbsp;- 查询结果为空则返回默认值；延迟</font><br />
        &nbsp;&nbsp;&nbsp; ·SequenceEqual<font face="Verdana">&nbsp;- 判断两个集合是否相同；不延迟</font><br />
        &nbsp;&nbsp;&nbsp; ·OfType<font face="Verdana">&nbsp;- 过滤集合中的指定类型；延迟</font><br />
        &nbsp;&nbsp;&nbsp; ·ToArray<font face="Verdana">&nbsp;- 将集合转换为数组；不延迟</font><br />
        &nbsp;&nbsp;&nbsp; ·ToList<font face="Verdana">&nbsp;- 将集合转换为List&lt;T&gt;集合；不延迟</font><br />
        &nbsp;&nbsp;&nbsp; ·ToDictionary<font face="Verdana">&nbsp;- 将集合转换为&lt;K, V&gt;集合；不延迟</font><br />
        <br />
        <br />
        示例<br />
        <font face="Verdana">Summary3.aspx.cs</font><br />
        <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee">
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /><span 
                style="COLOR: #0000ff">using</span><span style="COLOR: #000000">&nbsp;System;<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></span><span 
                style="COLOR: #0000ff">using</span><span style="COLOR: #000000">&nbsp;System.Data;<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></span><span 
                style="COLOR: #0000ff">using</span><span style="COLOR: #000000">&nbsp;System.Configuration;<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></span><span 
                style="COLOR: #0000ff">using</span><span style="COLOR: #000000">&nbsp;System.Collections;<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></span><span 
                style="COLOR: #0000ff">using</span><span style="COLOR: #000000">&nbsp;System.Linq;<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></span><span 
                style="COLOR: #0000ff">using</span><span style="COLOR: #000000">&nbsp;System.Web;<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></span><span 
                style="COLOR: #0000ff">using</span><span style="COLOR: #000000">&nbsp;System.Web.Security;<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></span><span 
                style="COLOR: #0000ff">using</span><span style="COLOR: #000000">&nbsp;System.Web.UI;<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></span><span 
                style="COLOR: #0000ff">using</span><span style="COLOR: #000000">&nbsp;System.Web.UI.WebControls;<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></span><span 
                style="COLOR: #0000ff">using</span><span style="COLOR: #000000">&nbsp;System.Web.UI.WebControls.WebParts;<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></span><span 
                style="COLOR: #0000ff">using</span><span style="COLOR: #000000">&nbsp;System.Web.UI.HtmlControls;<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></span><span 
                style="COLOR: #0000ff">using</span><span style="COLOR: #000000">&nbsp;System.Xml.Linq;<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></span><span 
                style="COLOR: #0000ff">using</span><span style="COLOR: #000000">&nbsp;System.Collections.Generic;<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></span><span 
                style="COLOR: #0000ff">using</span><span style="COLOR: #000000">&nbsp;DAL;<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /></span><span 
                style="COLOR: #0000ff">public</span><span style="COLOR: #000000">&nbsp;partial&nbsp;</span><span 
                style="COLOR: #0000ff">class</span><span style="COLOR: #000000">&nbsp;LINQ_Summary3&nbsp;:&nbsp;System.Web.UI.Page<br />
            <img id="Codehighlighter1_407_2287_Open_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_407_2287_Open_Text.style.display='none'; Codehighlighter1_407_2287_Closed_Image.style.display='inline'; Codehighlighter1_407_2287_Closed_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif" /><img 
                id="Codehighlighter1_407_2287_Closed_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_407_2287_Closed_Text.style.display='none'; Codehighlighter1_407_2287_Open_Image.style.display='inline'; Codehighlighter1_407_2287_Open_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif" /></span><span 
                id="Codehighlighter1_407_2287_Closed_Text" 
                style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img 
                alt="" src="http://www.cnblogs.com/Images/dot.gif" /></span><span 
                id="Codehighlighter1_407_2287_Open_Text"><span style="COLOR: #000000">{<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;NorthwindDataContext&nbsp;_ctx&nbsp;=&nbsp;</span><span 
                style="COLOR: #0000ff">new</span><span style="COLOR: #000000">&nbsp;NorthwindDataContext();<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: #0000ff">string</span><span style="COLOR: #000000">[]&nbsp;_ary&nbsp;=&nbsp;</span><span 
                style="COLOR: #0000ff">null</span><span style="COLOR: #000000">;<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" /><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: #0000ff">protected</span><span style="COLOR: #000000">&nbsp;</span><span 
                style="COLOR: #0000ff">void</span><span style="COLOR: #000000">&nbsp;Page_Load(</span><span 
                style="COLOR: #0000ff">object</span><span style="COLOR: #000000">&nbsp;sender,&nbsp;EventArgs&nbsp;e)<br />
            <img id="Codehighlighter1_557_2285_Open_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_557_2285_Open_Text.style.display='none'; Codehighlighter1_557_2285_Closed_Image.style.display='inline'; Codehighlighter1_557_2285_Closed_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" /><img 
                id="Codehighlighter1_557_2285_Closed_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_557_2285_Closed_Text.style.display='none'; Codehighlighter1_557_2285_Open_Image.style.display='inline'; Codehighlighter1_557_2285_Open_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                id="Codehighlighter1_557_2285_Closed_Text" 
                style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img 
                alt="" src="http://www.cnblogs.com/Images/dot.gif" /></span><span 
                id="Codehighlighter1_557_2285_Open_Text"><span style="COLOR: #000000">{<br />
            <img id="Codehighlighter1_587_761_Open_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_587_761_Open_Text.style.display='none'; Codehighlighter1_587_761_Closed_Image.style.display='inline'; Codehighlighter1_587_761_Closed_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" /><img 
                id="Codehighlighter1_587_761_Closed_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_587_761_Closed_Text.style.display='none'; Codehighlighter1_587_761_Open_Image.style.display='inline'; Codehighlighter1_587_761_Open_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_ary&nbsp;=&nbsp;</span><span 
                style="COLOR: #0000ff">new</span><span style="COLOR: #000000">&nbsp;</span><span 
                style="COLOR: #0000ff">string</span><span style="COLOR: #000000">[]&nbsp;</span><span 
                id="Codehighlighter1_587_761_Closed_Text" 
                style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img 
                alt="" src="http://www.cnblogs.com/Images/dot.gif" /></span><span 
                id="Codehighlighter1_587_761_Open_Text"><span style="COLOR: #000000">{&nbsp;&quot;asp.net&quot;,&nbsp;&quot;csharp&quot;,&nbsp;&quot;xhtml&quot;,&nbsp;&quot;css&quot;,&nbsp;&quot;javascript&quot;,&nbsp;<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;wcf&quot;,&nbsp;&quot;wpf&quot;,&nbsp;&quot;silverlight&quot;,&nbsp;&quot;linq&quot;,&nbsp;&quot;wf&quot;,&nbsp;<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;sqlserver&quot;,&nbsp;&quot;asp.net&nbsp;ajax&quot;,&nbsp;&quot;ssis&quot;,&nbsp;&quot;ssas&quot;,&nbsp;&quot;ssrs&quot;&nbsp;}</span></span><span 
                style="COLOR: #000000">;<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" /><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: #008000">//&nbsp;First&nbsp;-&nbsp;返回集合中的第一个元素；不延迟<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;FirstOrDefault&nbsp;-&nbsp;返回集合中的第一个元素（如果没有则返回默认值）；不延迟<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" /></span><span 
                style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Summary_First_FirstOrDefault();<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" /><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: #008000">//&nbsp;Last&nbsp;-&nbsp;返回集合中的最后一个元素；不延迟<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;LastOrDefault&nbsp;-&nbsp;返回集合中的最后一个元素（如果没有则返回默认值）<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" /></span><span 
                style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Summary_Last_LastOrDefault();<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" /><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: #008000">//&nbsp;ElementAt&nbsp;-&nbsp;返回集合中指定索引的元素；不延迟<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;ElementAtOrDefault&nbsp;-&nbsp;返回集合中指定索引的元素（如果没有则返回默认值）；不延迟<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" /></span><span 
                style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Summary_ElementAt_ElementAtOrDefault();<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" /><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: #008000">//&nbsp;Contains&nbsp;-&nbsp;判断集合中是否包含有某一元素；不延迟<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" /></span><span 
                style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Summary_Contains();<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" /><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: #008000">//&nbsp;Any&nbsp;-&nbsp;判断集合中是否有元素满足某一条件；不延迟<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" /></span><span 
                style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Summary_Any();<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" /><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: #008000">//&nbsp;All&nbsp;-&nbsp;判断集合中是否所有元素都满足某一条件；不延迟<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" /></span><span 
                style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Summary_All();<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" /><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: #008000">//&nbsp;Count&nbsp;-&nbsp;返回集合中的元素个数，返回int；不延迟<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;LongCount&nbsp;-&nbsp;返回集合中的元素个数，返回long；不延迟<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" /></span><span 
                style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Summary_Count_LongCount();<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" /><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: #008000">//&nbsp;Sum&nbsp;-&nbsp;集合应为数字类型集合，求其和；不延迟<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" /></span><span 
                style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Summary_Sum();<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" /><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: #008000">//&nbsp;Min&nbsp;-&nbsp;返回集合的最小值；不延迟<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" /></span><span 
                style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Summary_Min();<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" /><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: #008000">//&nbsp;Max&nbsp;-&nbsp;返回集合的最大值；不延迟<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" /></span><span 
                style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Summary_Max();<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" /><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: #008000">//&nbsp;Average&nbsp;-&nbsp;集合应为数字类型集合，求其平均值；不延迟<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" /></span><span 
                style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Summary_Average();<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" /><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: #008000">//&nbsp;Aggregate&nbsp;-&nbsp;根据输入的表达式获取一个聚合值；不延迟<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" /></span><span 
                style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Summary_Aggregate();<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" /><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: #008000">//&nbsp;Cast&nbsp;-&nbsp;将集合转换为强类型集合；延迟<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" /></span><span 
                style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Summary_Cast();<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" /><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: #008000">//&nbsp;DefaultIfEmpty&nbsp;-&nbsp;查询结果为空则返回默认值；延迟<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" /></span><span 
                style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Summary_DefaultIfEmpty();<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" /><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: #008000">//&nbsp;SequenceEqual&nbsp;-&nbsp;判断两个集合是否相同；不延迟<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" /></span><span 
                style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Summary_SequenceEqual();<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" /><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: #008000">//&nbsp;OfType&nbsp;-&nbsp;过滤集合中的指定类型；延迟<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" /></span><span 
                style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Summary_OfType();<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" /><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: #008000">//&nbsp;ToArray&nbsp;-&nbsp;将集合转换为数组；不延迟<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" /></span><span 
                style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Summary_ToArray();<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" /><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: #008000">//&nbsp;ToList&nbsp;-&nbsp;将集合转换为List&lt;T&gt;集合；不延迟<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" /></span><span 
                style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Summary_ToList();<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" /><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: #008000">//&nbsp;ToDictionary&nbsp;-&nbsp;将集合转换为&lt;K,&nbsp;V&gt;集合；不延迟<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" /></span><span 
                style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Summary_ToDictionary();<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" />&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span 
                style="COLOR: #000000"><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" />}</span></span></div>
        <br />
        <font face="Verdana">First - 返回集合中的第一个元素；不延迟</font><br />
        <font face="Verdana">FirstOrDefault - 返回集合中的第一个元素（如果没有则返回默认值）；不延迟</font><br />
        <div style="BORDER-RIGHT: rgb(204,204,204) 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: rgb(204,204,204) 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: rgb(204,204,204) 1px solid; WIDTH: 98%; PADDING-TOP: 4px; BORDER-BOTTOM: rgb(204,204,204) 1px solid; BACKGROUND-COLOR: rgb(238,238,238)">
            <img id="Codehighlighter1_4_121_Open_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_4_121_Open_Text.style.display='none'; Codehighlighter1_4_121_Closed_Image.style.display='inline'; Codehighlighter1_4_121_Closed_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif" /><img 
                id="Codehighlighter1_4_121_Closed_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_4_121_Closed_Text.style.display='none'; Codehighlighter1_4_121_Open_Image.style.display='inline'; Codehighlighter1_4_121_Open_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif" /><span 
                style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                id="Codehighlighter1_4_121_Closed_Text" 
                style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)">/**/</span><span 
                id="Codehighlighter1_4_121_Open_Text"><span style="COLOR: rgb(128,128,128)">///</span><span 
                style="COLOR: rgb(0,128,0)">&nbsp;</span><span style="COLOR: rgb(128,128,128)">&lt;summary&gt;</span><span 
                style="COLOR: rgb(0,128,0)"><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(128,128,128)">///</span><span style="COLOR: rgb(0,128,0)">&nbsp;First&nbsp;-&nbsp;返回集合中的第一个元素；不延迟<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(128,128,128)">///</span><span style="COLOR: rgb(0,128,0)">&nbsp;FirstOrDefault&nbsp;-&nbsp;返回集合中的第一个元素（如果没有则返回默认值）；不延迟<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(128,128,128)">///</span><span style="COLOR: rgb(0,128,0)">&nbsp;</span><span 
                style="COLOR: rgb(128,128,128)">&lt;/summary&gt;</span></span><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /><span 
                style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: rgb(0,0,255)">void</span><span 
                style="COLOR: rgb(0,0,0)">&nbsp;Summary_First_FirstOrDefault()<br />
            <img id="Codehighlighter1_166_483_Open_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_166_483_Open_Text.style.display='none'; Codehighlighter1_166_483_Closed_Image.style.display='inline'; Codehighlighter1_166_483_Closed_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif" /><img 
                id="Codehighlighter1_166_483_Closed_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_166_483_Closed_Text.style.display='none'; Codehighlighter1_166_483_Open_Image.style.display='inline'; Codehighlighter1_166_483_Open_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                id="Codehighlighter1_166_483_Closed_Text" 
                style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)"><img 
                alt="" src="http://www.cnblogs.com/Images/dot.gif" /></span><span 
                id="Codehighlighter1_166_483_Open_Text"><span style="COLOR: rgb(0,0,0)">{<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(0,0,255)">string</span><span style="COLOR: rgb(0,0,0)">&nbsp;s&nbsp;=&nbsp;(from&nbsp;a&nbsp;</span><span 
                style="COLOR: rgb(0,0,255)">in</span><span style="COLOR: rgb(0,0,0)">&nbsp;_ary<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;select&nbsp;a).First(a&nbsp;=&gt;&nbsp;a.StartsWith(&quot;s&quot;));<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(0,128,0)">//&nbsp;string&nbsp;s&nbsp;=&nbsp;(from&nbsp;a&nbsp;in&nbsp;_ary<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;select&nbsp;a).FirstOrDefault(a&nbsp;=&gt;&nbsp;a.StartsWith(&quot;xxx&quot;));<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;s&nbsp;==&nbsp;null<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" /></span><span 
                style="COLOR: rgb(0,0,0)"><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;result.InnerHtml&nbsp;+=&nbsp;s&nbsp;+&nbsp;&quot;&lt;br&nbsp;/&gt;&quot;;<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;result.InnerHtml&nbsp;+=&nbsp;&quot;&lt;br&nbsp;/&gt;&quot;;<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" />&nbsp;&nbsp;&nbsp;&nbsp;}</span></span></div>
        <font face="Verdana">运行结果</font><br />
        silverlight<br />
        <br />
        <font face="Verdana">Last - 返回集合中的最后一个元素；不延迟</font><br />
        <font face="Verdana">LastOrDefault - 返回集合中的最后一个元素（如果没有则返回默认值）</font><br />
        <div style="BORDER-RIGHT: rgb(204,204,204) 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: rgb(204,204,204) 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: rgb(204,204,204) 1px solid; WIDTH: 98%; PADDING-TOP: 4px; BORDER-BOTTOM: rgb(204,204,204) 1px solid; BACKGROUND-COLOR: rgb(238,238,238)">
            <img id="Codehighlighter1_4_117_Open_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_4_117_Open_Text.style.display='none'; Codehighlighter1_4_117_Closed_Image.style.display='inline'; Codehighlighter1_4_117_Closed_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif" /><img 
                id="Codehighlighter1_4_117_Closed_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_4_117_Closed_Text.style.display='none'; Codehighlighter1_4_117_Open_Image.style.display='inline'; Codehighlighter1_4_117_Open_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif" /><span 
                style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                id="Codehighlighter1_4_117_Closed_Text" 
                style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)">/**/</span><span 
                id="Codehighlighter1_4_117_Open_Text"><span style="COLOR: rgb(128,128,128)">///</span><span 
                style="COLOR: rgb(0,128,0)">&nbsp;</span><span style="COLOR: rgb(128,128,128)">&lt;summary&gt;</span><span 
                style="COLOR: rgb(0,128,0)"><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(128,128,128)">///</span><span style="COLOR: rgb(0,128,0)">&nbsp;Last&nbsp;-&nbsp;返回集合中的最后一个元素；不延迟<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(128,128,128)">///</span><span style="COLOR: rgb(0,128,0)">&nbsp;LastOrDefault&nbsp;-&nbsp;返回集合中的最后一个元素（如果没有则返回默认值）<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(128,128,128)">///</span><span style="COLOR: rgb(0,128,0)">&nbsp;</span><span 
                style="COLOR: rgb(128,128,128)">&lt;/summary&gt;</span></span><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /><span 
                style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: rgb(0,0,255)">void</span><span 
                style="COLOR: rgb(0,0,0)">&nbsp;Summary_Last_LastOrDefault()<br />
            <img id="Codehighlighter1_160_475_Open_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_160_475_Open_Text.style.display='none'; Codehighlighter1_160_475_Closed_Image.style.display='inline'; Codehighlighter1_160_475_Closed_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif" /><img 
                id="Codehighlighter1_160_475_Closed_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_160_475_Closed_Text.style.display='none'; Codehighlighter1_160_475_Open_Image.style.display='inline'; Codehighlighter1_160_475_Open_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                id="Codehighlighter1_160_475_Closed_Text" 
                style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)"><img 
                alt="" src="http://www.cnblogs.com/Images/dot.gif" /></span><span 
                id="Codehighlighter1_160_475_Open_Text"><span style="COLOR: rgb(0,0,0)">{<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(0,0,255)">string</span><span style="COLOR: rgb(0,0,0)">&nbsp;s&nbsp;=&nbsp;(from&nbsp;a&nbsp;</span><span 
                style="COLOR: rgb(0,0,255)">in</span><span style="COLOR: rgb(0,0,0)">&nbsp;_ary<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;select&nbsp;a).Last(a&nbsp;=&gt;&nbsp;a.StartsWith(&quot;s&quot;));<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(0,128,0)">//&nbsp;string&nbsp;s&nbsp;=&nbsp;(from&nbsp;a&nbsp;in&nbsp;_ary<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;select&nbsp;a).LastOrDefault(a&nbsp;=&gt;&nbsp;a.StartsWith(&quot;sss&quot;));<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;s&nbsp;==&nbsp;null<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" /></span><span 
                style="COLOR: rgb(0,0,0)"><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;result.InnerHtml&nbsp;+=&nbsp;s&nbsp;+&nbsp;&quot;&lt;br&nbsp;/&gt;&quot;;<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;result.InnerHtml&nbsp;+=&nbsp;&quot;&lt;br&nbsp;/&gt;&quot;;<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" />&nbsp;&nbsp;&nbsp;&nbsp;}</span></span></div>
        <font face="Verdana">运行结果</font><br />
        ssrs<br />
        <br />
        <font face="Verdana">ElementAt - 返回集合中指定索引的元素；不延迟</font><br />
        <font face="Verdana">ElementAtOrDefault - 返回集合中指定索引的元素（如果没有则返回默认值）；不延迟</font><br />
        <div style="BORDER-RIGHT: rgb(204,204,204) 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: rgb(204,204,204) 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: rgb(204,204,204) 1px solid; WIDTH: 98%; PADDING-TOP: 4px; BORDER-BOTTOM: rgb(204,204,204) 1px solid; BACKGROUND-COLOR: rgb(238,238,238)">
            <img id="Codehighlighter1_4_131_Open_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_4_131_Open_Text.style.display='none'; Codehighlighter1_4_131_Closed_Image.style.display='inline'; Codehighlighter1_4_131_Closed_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif" /><img 
                id="Codehighlighter1_4_131_Closed_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_4_131_Closed_Text.style.display='none'; Codehighlighter1_4_131_Open_Image.style.display='inline'; Codehighlighter1_4_131_Open_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif" /><span 
                style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                id="Codehighlighter1_4_131_Closed_Text" 
                style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)">/**/</span><span 
                id="Codehighlighter1_4_131_Open_Text"><span style="COLOR: rgb(128,128,128)">///</span><span 
                style="COLOR: rgb(0,128,0)">&nbsp;</span><span style="COLOR: rgb(128,128,128)">&lt;summary&gt;</span><span 
                style="COLOR: rgb(0,128,0)"><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(128,128,128)">///</span><span style="COLOR: rgb(0,128,0)">&nbsp;ElementAt&nbsp;-&nbsp;返回集合中指定索引的元素；不延迟<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(128,128,128)">///</span><span style="COLOR: rgb(0,128,0)">&nbsp;ElementAtOrDefault&nbsp;-&nbsp;返回集合中指定索引的元素（如果没有则返回默认值）；不延迟<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(128,128,128)">///</span><span style="COLOR: rgb(0,128,0)">&nbsp;</span><span 
                style="COLOR: rgb(128,128,128)">&lt;/summary&gt;</span></span><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /><span 
                style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: rgb(0,0,255)">void</span><span 
                style="COLOR: rgb(0,0,0)">&nbsp;Summary_ElementAt_ElementAtOrDefault()<br />
            <img id="Codehighlighter1_184_468_Open_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_184_468_Open_Text.style.display='none'; Codehighlighter1_184_468_Closed_Image.style.display='inline'; Codehighlighter1_184_468_Closed_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif" /><img 
                id="Codehighlighter1_184_468_Closed_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_184_468_Closed_Text.style.display='none'; Codehighlighter1_184_468_Open_Image.style.display='inline'; Codehighlighter1_184_468_Open_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                id="Codehighlighter1_184_468_Closed_Text" 
                style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)"><img 
                alt="" src="http://www.cnblogs.com/Images/dot.gif" /></span><span 
                id="Codehighlighter1_184_468_Open_Text"><span style="COLOR: rgb(0,0,0)">{<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(0,0,255)">string</span><span style="COLOR: rgb(0,0,0)">&nbsp;s&nbsp;=&nbsp;(from&nbsp;a&nbsp;</span><span 
                style="COLOR: rgb(0,0,255)">in</span><span style="COLOR: rgb(0,0,0)">&nbsp;_ary<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;select&nbsp;a).ElementAt(3);<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(0,128,0)">//&nbsp;string&nbsp;s&nbsp;=&nbsp;(from&nbsp;a&nbsp;in&nbsp;_ary<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;select&nbsp;a).ElementAtOrDefault(1000);<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;s&nbsp;==&nbsp;null<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" /></span><span 
                style="COLOR: rgb(0,0,0)"><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;result.InnerHtml&nbsp;+=&nbsp;s&nbsp;+&nbsp;&quot;&lt;br&nbsp;/&gt;&quot;;<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;result.InnerHtml&nbsp;+=&nbsp;&quot;&lt;br&nbsp;/&gt;&quot;;<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" />&nbsp;&nbsp;&nbsp;&nbsp;}</span></span></div>
        <font face="Verdana">运行结果</font><br />
        css<br />
        <br />
        <font face="Verdana">Contains - 判断集合中是否包含有某一元素；不延迟</font><br />
        <div style="BORDER-RIGHT: rgb(204,204,204) 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: rgb(204,204,204) 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: rgb(204,204,204) 1px solid; WIDTH: 98%; PADDING-TOP: 4px; BORDER-BOTTOM: rgb(204,204,204) 1px solid; BACKGROUND-COLOR: rgb(238,238,238)">
            <img id="Codehighlighter1_4_74_Open_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_4_74_Open_Text.style.display='none'; Codehighlighter1_4_74_Closed_Image.style.display='inline'; Codehighlighter1_4_74_Closed_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif" /><img 
                id="Codehighlighter1_4_74_Closed_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_4_74_Closed_Text.style.display='none'; Codehighlighter1_4_74_Open_Image.style.display='inline'; Codehighlighter1_4_74_Open_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif" /><span 
                style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                id="Codehighlighter1_4_74_Closed_Text" 
                style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)">/**/</span><span 
                id="Codehighlighter1_4_74_Open_Text"><span style="COLOR: rgb(128,128,128)">///</span><span 
                style="COLOR: rgb(0,128,0)">&nbsp;</span><span style="COLOR: rgb(128,128,128)">&lt;summary&gt;</span><span 
                style="COLOR: rgb(0,128,0)"><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(128,128,128)">///</span><span style="COLOR: rgb(0,128,0)">&nbsp;Contains&nbsp;-&nbsp;判断集合中是否包含有某一元素；不延迟<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(128,128,128)">///</span><span style="COLOR: rgb(0,128,0)">&nbsp;</span><span 
                style="COLOR: rgb(128,128,128)">&lt;/summary&gt;</span></span><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /><span 
                style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: rgb(0,0,255)">void</span><span 
                style="COLOR: rgb(0,0,0)">&nbsp;Summary_Contains()<br />
            <img id="Codehighlighter1_107_290_Open_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_107_290_Open_Text.style.display='none'; Codehighlighter1_107_290_Closed_Image.style.display='inline'; Codehighlighter1_107_290_Closed_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif" /><img 
                id="Codehighlighter1_107_290_Closed_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_107_290_Closed_Text.style.display='none'; Codehighlighter1_107_290_Open_Image.style.display='inline'; Codehighlighter1_107_290_Open_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                id="Codehighlighter1_107_290_Closed_Text" 
                style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)"><img 
                alt="" src="http://www.cnblogs.com/Images/dot.gif" /></span><span 
                id="Codehighlighter1_107_290_Open_Text"><span style="COLOR: rgb(0,0,0)">{<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(0,0,255)">bool</span><span style="COLOR: rgb(0,0,0)">&nbsp;b&nbsp;=&nbsp;(from&nbsp;a&nbsp;</span><span 
                style="COLOR: rgb(0,0,255)">in</span><span style="COLOR: rgb(0,0,0)">&nbsp;_ary<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;select&nbsp;a).Contains(&quot;javascript&quot;);<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" /><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;result.InnerHtml&nbsp;+=&nbsp;b.ToString()&nbsp;+&nbsp;&quot;&lt;br&nbsp;/&gt;&quot;;<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;result.InnerHtml&nbsp;+=&nbsp;&quot;&lt;br&nbsp;/&gt;&quot;;<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" />&nbsp;&nbsp;&nbsp;&nbsp;}</span></span></div>
        <font face="Verdana">运行结果</font><br />
        True<br />
        <br />
        <font face="Verdana">Any - 判断集合中是否有元素满足某一条件；不延迟</font><br />
        <div style="BORDER-RIGHT: rgb(204,204,204) 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: rgb(204,204,204) 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: rgb(204,204,204) 1px solid; WIDTH: 98%; PADDING-TOP: 4px; BORDER-BOTTOM: rgb(204,204,204) 1px solid; BACKGROUND-COLOR: rgb(238,238,238)">
            <img id="Codehighlighter1_4_71_Open_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_4_71_Open_Text.style.display='none'; Codehighlighter1_4_71_Closed_Image.style.display='inline'; Codehighlighter1_4_71_Closed_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif" /><img 
                id="Codehighlighter1_4_71_Closed_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_4_71_Closed_Text.style.display='none'; Codehighlighter1_4_71_Open_Image.style.display='inline'; Codehighlighter1_4_71_Open_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif" /><span 
                style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                id="Codehighlighter1_4_71_Closed_Text" 
                style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)">/**/</span><span 
                id="Codehighlighter1_4_71_Open_Text"><span style="COLOR: rgb(128,128,128)">///</span><span 
                style="COLOR: rgb(0,128,0)">&nbsp;</span><span style="COLOR: rgb(128,128,128)">&lt;summary&gt;</span><span 
                style="COLOR: rgb(0,128,0)"><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(128,128,128)">///</span><span style="COLOR: rgb(0,128,0)">&nbsp;Any&nbsp;-&nbsp;判断集合中是否有元素满足某一条件；不延迟<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(128,128,128)">///</span><span style="COLOR: rgb(0,128,0)">&nbsp;</span><span 
                style="COLOR: rgb(128,128,128)">&lt;/summary&gt;</span></span><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /><span 
                style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: rgb(0,0,255)">void</span><span 
                style="COLOR: rgb(0,0,0)">&nbsp;Summary_Any()<br />
            <img id="Codehighlighter1_99_283_Open_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_99_283_Open_Text.style.display='none'; Codehighlighter1_99_283_Closed_Image.style.display='inline'; Codehighlighter1_99_283_Closed_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif" /><img 
                id="Codehighlighter1_99_283_Closed_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_99_283_Closed_Text.style.display='none'; Codehighlighter1_99_283_Open_Image.style.display='inline'; Codehighlighter1_99_283_Open_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                id="Codehighlighter1_99_283_Closed_Text" 
                style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)"><img 
                alt="" src="http://www.cnblogs.com/Images/dot.gif" /></span><span 
                id="Codehighlighter1_99_283_Open_Text"><span style="COLOR: rgb(0,0,0)">{<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(0,0,255)">bool</span><span style="COLOR: rgb(0,0,0)">&nbsp;b&nbsp;=&nbsp;(from&nbsp;a&nbsp;</span><span 
                style="COLOR: rgb(0,0,255)">in</span><span style="COLOR: rgb(0,0,0)">&nbsp;_ary<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;select&nbsp;a).Any(p&nbsp;=&gt;&nbsp;p.Length&nbsp;&gt;&nbsp;10);<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" /><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;result.InnerHtml&nbsp;+=&nbsp;b.ToString()&nbsp;+&nbsp;&quot;&lt;br&nbsp;/&gt;&quot;;<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;result.InnerHtml&nbsp;+=&nbsp;&quot;&lt;br&nbsp;/&gt;&quot;;<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" />&nbsp;&nbsp;&nbsp;&nbsp;}</span></span></div>
        <font face="Verdana">运行结果</font><br />
        True<br />
        <br />
        <font face="Verdana">All - 判断集合中是否所有元素都满足某一条件；不延迟</font><br />
        <div style="BORDER-RIGHT: rgb(204,204,204) 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: rgb(204,204,204) 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: rgb(204,204,204) 1px solid; WIDTH: 98%; PADDING-TOP: 4px; BORDER-BOTTOM: rgb(204,204,204) 1px solid; BACKGROUND-COLOR: rgb(238,238,238)">
            <img id="Codehighlighter1_4_73_Open_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_4_73_Open_Text.style.display='none'; Codehighlighter1_4_73_Closed_Image.style.display='inline'; Codehighlighter1_4_73_Closed_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif" /><img 
                id="Codehighlighter1_4_73_Closed_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_4_73_Closed_Text.style.display='none'; Codehighlighter1_4_73_Open_Image.style.display='inline'; Codehighlighter1_4_73_Open_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif" /><span 
                style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                id="Codehighlighter1_4_73_Closed_Text" 
                style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)">/**/</span><span 
                id="Codehighlighter1_4_73_Open_Text"><span style="COLOR: rgb(128,128,128)">///</span><span 
                style="COLOR: rgb(0,128,0)">&nbsp;</span><span style="COLOR: rgb(128,128,128)">&lt;summary&gt;</span><span 
                style="COLOR: rgb(0,128,0)"><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(128,128,128)">///</span><span style="COLOR: rgb(0,128,0)">&nbsp;All&nbsp;-&nbsp;判断集合中是否所有元素都满足某一条件；不延迟<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(128,128,128)">///</span><span style="COLOR: rgb(0,128,0)">&nbsp;</span><span 
                style="COLOR: rgb(128,128,128)">&lt;/summary&gt;</span></span><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /><span 
                style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: rgb(0,0,255)">void</span><span 
                style="COLOR: rgb(0,0,0)">&nbsp;Summary_All()<br />
            <img id="Codehighlighter1_101_285_Open_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_101_285_Open_Text.style.display='none'; Codehighlighter1_101_285_Closed_Image.style.display='inline'; Codehighlighter1_101_285_Closed_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif" /><img 
                id="Codehighlighter1_101_285_Closed_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_101_285_Closed_Text.style.display='none'; Codehighlighter1_101_285_Open_Image.style.display='inline'; Codehighlighter1_101_285_Open_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                id="Codehighlighter1_101_285_Closed_Text" 
                style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)"><img 
                alt="" src="http://www.cnblogs.com/Images/dot.gif" /></span><span 
                id="Codehighlighter1_101_285_Open_Text"><span style="COLOR: rgb(0,0,0)">{<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(0,0,255)">bool</span><span style="COLOR: rgb(0,0,0)">&nbsp;b&nbsp;=&nbsp;(from&nbsp;a&nbsp;</span><span 
                style="COLOR: rgb(0,0,255)">in</span><span style="COLOR: rgb(0,0,0)">&nbsp;_ary<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;select&nbsp;a).All(p&nbsp;=&gt;&nbsp;p.Length&nbsp;&gt;&nbsp;10);<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" /><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;result.InnerHtml&nbsp;+=&nbsp;b.ToString()&nbsp;+&nbsp;&quot;&lt;br&nbsp;/&gt;&quot;;<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;result.InnerHtml&nbsp;+=&nbsp;&quot;&lt;br&nbsp;/&gt;&quot;;<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" />&nbsp;&nbsp;&nbsp;&nbsp;}</span></span></div>
        <font face="Verdana">运行结果</font><br />
        False<br />
        <br />
        <font face="Verdana">Count - 返回集合中的元素个数，返回int；不延迟</font><br />
        <font face="Verdana">LongCount - 返回集合中的元素个数，返回long；不延迟</font><br />
        <div style="BORDER-RIGHT: rgb(204,204,204) 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: rgb(204,204,204) 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: rgb(204,204,204) 1px solid; WIDTH: 98%; PADDING-TOP: 4px; BORDER-BOTTOM: rgb(204,204,204) 1px solid; BACKGROUND-COLOR: rgb(238,238,238)">
            <img id="Codehighlighter1_4_115_Open_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_4_115_Open_Text.style.display='none'; Codehighlighter1_4_115_Closed_Image.style.display='inline'; Codehighlighter1_4_115_Closed_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif" /><img 
                id="Codehighlighter1_4_115_Closed_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_4_115_Closed_Text.style.display='none'; Codehighlighter1_4_115_Open_Image.style.display='inline'; Codehighlighter1_4_115_Open_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif" /><span 
                style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                id="Codehighlighter1_4_115_Closed_Text" 
                style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)">/**/</span><span 
                id="Codehighlighter1_4_115_Open_Text"><span style="COLOR: rgb(128,128,128)">///</span><span 
                style="COLOR: rgb(0,128,0)">&nbsp;</span><span style="COLOR: rgb(128,128,128)">&lt;summary&gt;</span><span 
                style="COLOR: rgb(0,128,0)"><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(128,128,128)">///</span><span style="COLOR: rgb(0,128,0)">&nbsp;Count&nbsp;-&nbsp;返回集合中的元素个数，返回int；不延迟<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(128,128,128)">///</span><span style="COLOR: rgb(0,128,0)">&nbsp;LongCount&nbsp;-&nbsp;返回集合中的元素个数，返回long；不延迟<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(128,128,128)">///</span><span style="COLOR: rgb(0,128,0)">&nbsp;</span><span 
                style="COLOR: rgb(128,128,128)">&lt;/summary&gt;</span></span><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /><span 
                style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: rgb(0,0,255)">void</span><span 
                style="COLOR: rgb(0,0,0)">&nbsp;Summary_Count_LongCount()<br />
            <img id="Codehighlighter1_155_437_Open_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_155_437_Open_Text.style.display='none'; Codehighlighter1_155_437_Closed_Image.style.display='inline'; Codehighlighter1_155_437_Closed_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif" /><img 
                id="Codehighlighter1_155_437_Closed_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_155_437_Closed_Text.style.display='none'; Codehighlighter1_155_437_Open_Image.style.display='inline'; Codehighlighter1_155_437_Open_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                id="Codehighlighter1_155_437_Closed_Text" 
                style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)"><img 
                alt="" src="http://www.cnblogs.com/Images/dot.gif" /></span><span 
                id="Codehighlighter1_155_437_Open_Text"><span style="COLOR: rgb(0,0,0)">{<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(0,0,255)">int</span><span style="COLOR: rgb(0,0,0)">&nbsp;i&nbsp;=&nbsp;(from&nbsp;a&nbsp;</span><span 
                style="COLOR: rgb(0,0,255)">in</span><span style="COLOR: rgb(0,0,0)">&nbsp;_ary<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;select&nbsp;a).Count(p&nbsp;=&gt;&nbsp;p.Length&nbsp;&gt;&nbsp;10);<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(0,128,0)">//&nbsp;long&nbsp;i&nbsp;=&nbsp;(from&nbsp;a&nbsp;in&nbsp;_ary<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;select&nbsp;a).LongCount(p&nbsp;=&gt;&nbsp;p.Length&nbsp;&gt;&nbsp;10);<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" /></span><span 
                style="COLOR: rgb(0,0,0)"><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;result.InnerHtml&nbsp;+=&nbsp;i.ToString()&nbsp;+&nbsp;&quot;&lt;br&nbsp;/&gt;&quot;;<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;result.InnerHtml&nbsp;+=&nbsp;&quot;&lt;br&nbsp;/&gt;&quot;;<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" />&nbsp;&nbsp;&nbsp;&nbsp;}</span></span></div>
        <font face="Verdana">运行结果</font><br />
        2<br />
        <br />
        <font face="Verdana">Sum - 集合应为数字类型集合，求其和；不延迟</font><br />
        <div style="BORDER-RIGHT: rgb(204,204,204) 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: rgb(204,204,204) 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: rgb(204,204,204) 1px solid; WIDTH: 98%; PADDING-TOP: 4px; BORDER-BOTTOM: rgb(204,204,204) 1px solid; BACKGROUND-COLOR: rgb(238,238,238)">
            <img id="Codehighlighter1_4_69_Open_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_4_69_Open_Text.style.display='none'; Codehighlighter1_4_69_Closed_Image.style.display='inline'; Codehighlighter1_4_69_Closed_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif" /><img 
                id="Codehighlighter1_4_69_Closed_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_4_69_Closed_Text.style.display='none'; Codehighlighter1_4_69_Open_Image.style.display='inline'; Codehighlighter1_4_69_Open_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif" /><span 
                style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                id="Codehighlighter1_4_69_Closed_Text" 
                style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)">/**/</span><span 
                id="Codehighlighter1_4_69_Open_Text"><span style="COLOR: rgb(128,128,128)">///</span><span 
                style="COLOR: rgb(0,128,0)">&nbsp;</span><span style="COLOR: rgb(128,128,128)">&lt;summary&gt;</span><span 
                style="COLOR: rgb(0,128,0)"><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(128,128,128)">///</span><span style="COLOR: rgb(0,128,0)">&nbsp;Sum&nbsp;-&nbsp;集合应为数字类型集合，求其和；不延迟<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(128,128,128)">///</span><span style="COLOR: rgb(0,128,0)">&nbsp;</span><span 
                style="COLOR: rgb(128,128,128)">&lt;/summary&gt;</span></span><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /><span 
                style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: rgb(0,0,255)">void</span><span 
                style="COLOR: rgb(0,0,0)">&nbsp;Summary_Sum()<br />
            <img id="Codehighlighter1_97_268_Open_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_97_268_Open_Text.style.display='none'; Codehighlighter1_97_268_Closed_Image.style.display='inline'; Codehighlighter1_97_268_Closed_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif" /><img 
                id="Codehighlighter1_97_268_Closed_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_97_268_Closed_Text.style.display='none'; Codehighlighter1_97_268_Open_Image.style.display='inline'; Codehighlighter1_97_268_Open_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                id="Codehighlighter1_97_268_Closed_Text" 
                style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)"><img 
                alt="" src="http://www.cnblogs.com/Images/dot.gif" /></span><span 
                id="Codehighlighter1_97_268_Open_Text"><span style="COLOR: rgb(0,0,0)">{<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(0,0,255)">int</span><span style="COLOR: rgb(0,0,0)">&nbsp;i&nbsp;=&nbsp;(from&nbsp;a&nbsp;</span><span 
                style="COLOR: rgb(0,0,255)">in</span><span style="COLOR: rgb(0,0,0)">&nbsp;_ary<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;select&nbsp;a.Length).Sum();<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" /><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;result.InnerHtml&nbsp;+=&nbsp;i.ToString()&nbsp;+&nbsp;&quot;&lt;br&nbsp;/&gt;&quot;;<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;result.InnerHtml&nbsp;+=&nbsp;&quot;&lt;br&nbsp;/&gt;&quot;;<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" />&nbsp;&nbsp;&nbsp;&nbsp;}</span></span></div>
        <font face="Verdana">运行结果</font><br />
        87<br />
        <br />
        <font face="Verdana">Min - 返回集合的最小值；不延迟</font><br />
        <div style="BORDER-RIGHT: rgb(204,204,204) 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: rgb(204,204,204) 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: rgb(204,204,204) 1px solid; WIDTH: 98%; PADDING-TOP: 4px; BORDER-BOTTOM: rgb(204,204,204) 1px solid; BACKGROUND-COLOR: rgb(238,238,238)">
            <img id="Codehighlighter1_4_63_Open_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_4_63_Open_Text.style.display='none'; Codehighlighter1_4_63_Closed_Image.style.display='inline'; Codehighlighter1_4_63_Closed_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif" /><img 
                id="Codehighlighter1_4_63_Closed_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_4_63_Closed_Text.style.display='none'; Codehighlighter1_4_63_Open_Image.style.display='inline'; Codehighlighter1_4_63_Open_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif" /><span 
                style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                id="Codehighlighter1_4_63_Closed_Text" 
                style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)">/**/</span><span 
                id="Codehighlighter1_4_63_Open_Text"><span style="COLOR: rgb(128,128,128)">///</span><span 
                style="COLOR: rgb(0,128,0)">&nbsp;</span><span style="COLOR: rgb(128,128,128)">&lt;summary&gt;</span><span 
                style="COLOR: rgb(0,128,0)"><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(128,128,128)">///</span><span style="COLOR: rgb(0,128,0)">&nbsp;Min&nbsp;-&nbsp;返回集合的最小值；不延迟<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(128,128,128)">///</span><span style="COLOR: rgb(0,128,0)">&nbsp;</span><span 
                style="COLOR: rgb(128,128,128)">&lt;/summary&gt;</span></span><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /><span 
                style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: rgb(0,0,255)">void</span><span 
                style="COLOR: rgb(0,0,0)">&nbsp;Summary_Min()<br />
            <img id="Codehighlighter1_91_262_Open_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_91_262_Open_Text.style.display='none'; Codehighlighter1_91_262_Closed_Image.style.display='inline'; Codehighlighter1_91_262_Closed_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif" /><img 
                id="Codehighlighter1_91_262_Closed_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_91_262_Closed_Text.style.display='none'; Codehighlighter1_91_262_Open_Image.style.display='inline'; Codehighlighter1_91_262_Open_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                id="Codehighlighter1_91_262_Closed_Text" 
                style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)"><img 
                alt="" src="http://www.cnblogs.com/Images/dot.gif" /></span><span 
                id="Codehighlighter1_91_262_Open_Text"><span style="COLOR: rgb(0,0,0)">{<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(0,0,255)">int</span><span style="COLOR: rgb(0,0,0)">&nbsp;i&nbsp;=&nbsp;(from&nbsp;a&nbsp;</span><span 
                style="COLOR: rgb(0,0,255)">in</span><span style="COLOR: rgb(0,0,0)">&nbsp;_ary<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;select&nbsp;a.Length).Min();<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" /><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;result.InnerHtml&nbsp;+=&nbsp;i.ToString()&nbsp;+&nbsp;&quot;&lt;br&nbsp;/&gt;&quot;;<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;result.InnerHtml&nbsp;+=&nbsp;&quot;&lt;br&nbsp;/&gt;&quot;;<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" />&nbsp;&nbsp;&nbsp;&nbsp;}</span></span></div>
        <font face="Verdana">运行结果</font><br />
        2<br />
        <br />
        <font face="Verdana">Max - 返回集合的最大值；不延迟</font><br />
        <div style="BORDER-RIGHT: rgb(204,204,204) 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: rgb(204,204,204) 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: rgb(204,204,204) 1px solid; WIDTH: 98%; PADDING-TOP: 4px; BORDER-BOTTOM: rgb(204,204,204) 1px solid; BACKGROUND-COLOR: rgb(238,238,238)">
            <img id="Codehighlighter1_4_63_Open_Image0" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_4_63_Open_Text.style.display='none'; Codehighlighter1_4_63_Closed_Image.style.display='inline'; Codehighlighter1_4_63_Closed_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif" /><img 
                id="Codehighlighter1_4_63_Closed_Image0" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_4_63_Closed_Text.style.display='none'; Codehighlighter1_4_63_Open_Image.style.display='inline'; Codehighlighter1_4_63_Open_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif" /><span 
                style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                id="Codehighlighter1_4_63_Closed_Text0" 
                style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)">/**/</span><span 
                id="Codehighlighter1_4_63_Open_Text0"><span style="COLOR: rgb(128,128,128)">///</span><span 
                style="COLOR: rgb(0,128,0)">&nbsp;</span><span style="COLOR: rgb(128,128,128)">&lt;summary&gt;</span><span 
                style="COLOR: rgb(0,128,0)"><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(128,128,128)">///</span><span style="COLOR: rgb(0,128,0)">&nbsp;Max&nbsp;-&nbsp;返回集合的最大值；不延迟<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(128,128,128)">///</span><span style="COLOR: rgb(0,128,0)">&nbsp;</span><span 
                style="COLOR: rgb(128,128,128)">&lt;/summary&gt;</span></span><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /><span 
                style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: rgb(0,0,255)">void</span><span 
                style="COLOR: rgb(0,0,0)">&nbsp;Summary_Max()<br />
            <img id="Codehighlighter1_91_262_Open_Image0" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_91_262_Open_Text.style.display='none'; Codehighlighter1_91_262_Closed_Image.style.display='inline'; Codehighlighter1_91_262_Closed_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif" /><img 
                id="Codehighlighter1_91_262_Closed_Image0" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_91_262_Closed_Text.style.display='none'; Codehighlighter1_91_262_Open_Image.style.display='inline'; Codehighlighter1_91_262_Open_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                id="Codehighlighter1_91_262_Closed_Text0" 
                style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)"><img 
                alt="" src="http://www.cnblogs.com/Images/dot.gif" /></span><span 
                id="Codehighlighter1_91_262_Open_Text0"><span style="COLOR: rgb(0,0,0)">{<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(0,0,255)">int</span><span style="COLOR: rgb(0,0,0)">&nbsp;i&nbsp;=&nbsp;(from&nbsp;a&nbsp;</span><span 
                style="COLOR: rgb(0,0,255)">in</span><span style="COLOR: rgb(0,0,0)">&nbsp;_ary<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;select&nbsp;a.Length).Max();<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" /><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;result.InnerHtml&nbsp;+=&nbsp;i.ToString()&nbsp;+&nbsp;&quot;&lt;br&nbsp;/&gt;&quot;;<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;result.InnerHtml&nbsp;+=&nbsp;&quot;&lt;br&nbsp;/&gt;&quot;;<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" />&nbsp;&nbsp;&nbsp;&nbsp;}</span></span></div>
        <font face="Verdana">运行结果</font><br />
        12<br />
        <br />
        <font face="Verdana">Average - 集合应为数字类型集合，求其平均值；不延迟</font><br />
        <div style="BORDER-RIGHT: rgb(204,204,204) 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: rgb(204,204,204) 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: rgb(204,204,204) 1px solid; WIDTH: 98%; PADDING-TOP: 4px; BORDER-BOTTOM: rgb(204,204,204) 1px solid; BACKGROUND-COLOR: rgb(238,238,238)">
            <img id="Codehighlighter1_4_75_Open_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_4_75_Open_Text.style.display='none'; Codehighlighter1_4_75_Closed_Image.style.display='inline'; Codehighlighter1_4_75_Closed_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif" /><img 
                id="Codehighlighter1_4_75_Closed_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_4_75_Closed_Text.style.display='none'; Codehighlighter1_4_75_Open_Image.style.display='inline'; Codehighlighter1_4_75_Open_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif" /><span 
                style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                id="Codehighlighter1_4_75_Closed_Text" 
                style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)">/**/</span><span 
                id="Codehighlighter1_4_75_Open_Text"><span style="COLOR: rgb(128,128,128)">///</span><span 
                style="COLOR: rgb(0,128,0)">&nbsp;</span><span style="COLOR: rgb(128,128,128)">&lt;summary&gt;</span><span 
                style="COLOR: rgb(0,128,0)"><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(128,128,128)">///</span><span style="COLOR: rgb(0,128,0)">&nbsp;Average&nbsp;-&nbsp;集合应为数字类型集合，求其平均值；不延迟<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(128,128,128)">///</span><span style="COLOR: rgb(0,128,0)">&nbsp;</span><span 
                style="COLOR: rgb(128,128,128)">&lt;/summary&gt;</span></span><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /><span 
                style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: rgb(0,0,255)">void</span><span 
                style="COLOR: rgb(0,0,0)">&nbsp;Summary_Average()<br />
            <img id="Codehighlighter1_107_288_Open_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_107_288_Open_Text.style.display='none'; Codehighlighter1_107_288_Closed_Image.style.display='inline'; Codehighlighter1_107_288_Closed_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif" /><img 
                id="Codehighlighter1_107_288_Closed_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_107_288_Closed_Text.style.display='none'; Codehighlighter1_107_288_Open_Image.style.display='inline'; Codehighlighter1_107_288_Open_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                id="Codehighlighter1_107_288_Closed_Text" 
                style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)"><img 
                alt="" src="http://www.cnblogs.com/Images/dot.gif" /></span><span 
                id="Codehighlighter1_107_288_Open_Text"><span style="COLOR: rgb(0,0,0)">{<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(0,0,255)">double</span><span style="COLOR: rgb(0,0,0)">&nbsp;d&nbsp;=&nbsp;(from&nbsp;a&nbsp;</span><span 
                style="COLOR: rgb(0,0,255)">in</span><span style="COLOR: rgb(0,0,0)">&nbsp;_ary<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;select&nbsp;a.Length).Average();<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" /><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;result.InnerHtml&nbsp;+=&nbsp;d.ToString()&nbsp;+&nbsp;&quot;&lt;br&nbsp;/&gt;&quot;;<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;result.InnerHtml&nbsp;+=&nbsp;&quot;&lt;br&nbsp;/&gt;&quot;;<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" />&nbsp;&nbsp;&nbsp;&nbsp;}</span></span></div>
        <font face="Verdana">运行结果</font><br />
        5.8<br />
        <br />
        <font face="Verdana">Aggregate - 根据输入的表达式获取一个聚合值；不延迟</font><br />
        <font face="Verdana">
        <div style="BORDER-RIGHT: rgb(204,204,204) 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: rgb(204,204,204) 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: rgb(204,204,204) 1px solid; WIDTH: 98%; PADDING-TOP: 4px; BORDER-BOTTOM: rgb(204,204,204) 1px solid; BACKGROUND-COLOR: rgb(238,238,238)">
            <img id="Codehighlighter1_4_76_Open_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_4_76_Open_Text.style.display='none'; Codehighlighter1_4_76_Closed_Image.style.display='inline'; Codehighlighter1_4_76_Closed_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif" /><img 
                id="Codehighlighter1_4_76_Closed_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_4_76_Closed_Text.style.display='none'; Codehighlighter1_4_76_Open_Image.style.display='inline'; Codehighlighter1_4_76_Open_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif" /><span 
                style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                id="Codehighlighter1_4_76_Closed_Text" 
                style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)">/**/</span><span 
                id="Codehighlighter1_4_76_Open_Text"><span style="COLOR: rgb(128,128,128)">///</span><span 
                style="COLOR: rgb(0,128,0)">&nbsp;</span><span style="COLOR: rgb(128,128,128)">&lt;summary&gt;</span><span 
                style="COLOR: rgb(0,128,0)"><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(128,128,128)">///</span><span style="COLOR: rgb(0,128,0)">&nbsp;Aggregate&nbsp;-&nbsp;根据输入的表达式获取一个聚合值；不延迟<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(128,128,128)">///</span><span style="COLOR: rgb(0,128,0)">&nbsp;</span><span 
                style="COLOR: rgb(128,128,128)">&lt;/summary&gt;</span></span><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /><span 
                style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: rgb(0,0,255)">void</span><span 
                style="COLOR: rgb(0,0,0)">&nbsp;Summary_Aggregate()<br />
            <img id="Codehighlighter1_110_340_Open_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_110_340_Open_Text.style.display='none'; Codehighlighter1_110_340_Closed_Image.style.display='inline'; Codehighlighter1_110_340_Closed_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif" /><img 
                id="Codehighlighter1_110_340_Closed_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_110_340_Closed_Text.style.display='none'; Codehighlighter1_110_340_Open_Image.style.display='inline'; Codehighlighter1_110_340_Open_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                id="Codehighlighter1_110_340_Closed_Text" 
                style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)"><img 
                alt="" src="http://www.cnblogs.com/Images/dot.gif" /></span><span 
                id="Codehighlighter1_110_340_Open_Text"><span style="COLOR: rgb(0,0,0)">{<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(0,128,0)">//&nbsp;以下算法的Aggregate相当于Sum<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" /></span><span 
                style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: rgb(0,0,255)">double</span><span 
                style="COLOR: rgb(0,0,0)">&nbsp;d&nbsp;=&nbsp;(from&nbsp;a&nbsp;</span><span 
                style="COLOR: rgb(0,0,255)">in</span><span style="COLOR: rgb(0,0,0)">&nbsp;_ary<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;select&nbsp;a.Length).Aggregate((x,&nbsp;y)&nbsp;=&gt;&nbsp;x&nbsp;+&nbsp;y);<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" /><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;result.InnerHtml&nbsp;+=&nbsp;d.ToString()&nbsp;+&nbsp;&quot;&lt;br&nbsp;/&gt;&quot;;<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;result.InnerHtml&nbsp;+=&nbsp;&quot;&lt;br&nbsp;/&gt;&quot;;<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" />&nbsp;&nbsp;&nbsp;&nbsp;}</span></span></div>
        运行结果</font><br />
        87<br />
        <br />
        <font face="Verdana">Cast - 将集合转换为强类型集合；延迟</font><br />
        <div style="BORDER-RIGHT: rgb(204,204,204) 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: rgb(204,204,204) 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: rgb(204,204,204) 1px solid; WIDTH: 98%; PADDING-TOP: 4px; BORDER-BOTTOM: rgb(204,204,204) 1px solid; BACKGROUND-COLOR: rgb(238,238,238)">
            <img id="Codehighlighter1_4_66_Open_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_4_66_Open_Text.style.display='none'; Codehighlighter1_4_66_Closed_Image.style.display='inline'; Codehighlighter1_4_66_Closed_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif" /><img 
                id="Codehighlighter1_4_66_Closed_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_4_66_Closed_Text.style.display='none'; Codehighlighter1_4_66_Open_Image.style.display='inline'; Codehighlighter1_4_66_Open_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif" /><span 
                style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                id="Codehighlighter1_4_66_Closed_Text" 
                style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)">/**/</span><span 
                id="Codehighlighter1_4_66_Open_Text"><span style="COLOR: rgb(128,128,128)">///</span><span 
                style="COLOR: rgb(0,128,0)">&nbsp;</span><span style="COLOR: rgb(128,128,128)">&lt;summary&gt;</span><span 
                style="COLOR: rgb(0,128,0)"><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(128,128,128)">///</span><span style="COLOR: rgb(0,128,0)">&nbsp;Cast&nbsp;-&nbsp;将集合转换为强类型集合；延迟<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(128,128,128)">///</span><span style="COLOR: rgb(0,128,0)">&nbsp;</span><span 
                style="COLOR: rgb(128,128,128)">&lt;/summary&gt;</span></span><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /><span 
                style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: rgb(0,0,255)">void</span><span 
                style="COLOR: rgb(0,0,0)">&nbsp;Summary_Cast()<br />
            <img id="Codehighlighter1_95_398_Open_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_95_398_Open_Text.style.display='none'; Codehighlighter1_95_398_Closed_Image.style.display='inline'; Codehighlighter1_95_398_Closed_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif" /><img 
                id="Codehighlighter1_95_398_Closed_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_95_398_Closed_Text.style.display='none'; Codehighlighter1_95_398_Open_Image.style.display='inline'; Codehighlighter1_95_398_Open_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                id="Codehighlighter1_95_398_Closed_Text" 
                style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)"><img 
                alt="" src="http://www.cnblogs.com/Images/dot.gif" /></span><span 
                id="Codehighlighter1_95_398_Open_Text"><span style="COLOR: rgb(0,0,0)">{<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ArrayList&nbsp;al&nbsp;=&nbsp;</span><span 
                style="COLOR: rgb(0,0,255)">new</span><span style="COLOR: rgb(0,0,0)">&nbsp;ArrayList();<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;al.Add(&quot;asp.net&quot;);<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;al.Add(&quot;csharp&quot;);<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;al.Add(&quot;xhtml&quot;);<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" /><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;list&nbsp;=&nbsp;al.Cast&lt;</span><span 
                style="COLOR: rgb(0,0,255)">string</span><span style="COLOR: rgb(0,0,0)">&gt;();<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" /><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(0,0,255)">foreach</span><span style="COLOR: rgb(0,0,0)">&nbsp;(</span><span 
                style="COLOR: rgb(0,0,255)">string</span><span style="COLOR: rgb(0,0,0)">&nbsp;s&nbsp;</span><span 
                style="COLOR: rgb(0,0,255)">in</span><span style="COLOR: rgb(0,0,0)">&nbsp;list)<br />
            <img id="Codehighlighter1_298_354_Open_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_298_354_Open_Text.style.display='none'; Codehighlighter1_298_354_Closed_Image.style.display='inline'; Codehighlighter1_298_354_Closed_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" /><img 
                id="Codehighlighter1_298_354_Closed_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_298_354_Closed_Text.style.display='none'; Codehighlighter1_298_354_Open_Image.style.display='inline'; Codehighlighter1_298_354_Open_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                id="Codehighlighter1_298_354_Closed_Text" 
                style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)"><img 
                alt="" src="http://www.cnblogs.com/Images/dot.gif" /></span><span 
                id="Codehighlighter1_298_354_Open_Text"><span style="COLOR: rgb(0,0,0)">{<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;result.InnerHtml&nbsp;+=&nbsp;s&nbsp;+&nbsp;&quot;&lt;br&nbsp;/&gt;&quot;;<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span 
                style="COLOR: rgb(0,0,0)"><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;result.InnerHtml&nbsp;+=&nbsp;&quot;&lt;br&nbsp;/&gt;&quot;;<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" />&nbsp;&nbsp;&nbsp;&nbsp;}</span></span></div>
        运行结果<br />
        <font face="Verdana">asp.net<br />
        csharp<br />
        xhtml</font><br />
        <br />
        <font face="Verdana">DefaultIfEmpty - 查询结果为空则返回默认值；延迟</font><br />
        <div style="BORDER-RIGHT: rgb(204,204,204) 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: rgb(204,204,204) 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: rgb(204,204,204) 1px solid; WIDTH: 98%; PADDING-TOP: 4px; BORDER-BOTTOM: rgb(204,204,204) 1px solid; BACKGROUND-COLOR: rgb(238,238,238)">
            <img id="Codehighlighter1_4_77_Open_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_4_77_Open_Text.style.display='none'; Codehighlighter1_4_77_Closed_Image.style.display='inline'; Codehighlighter1_4_77_Closed_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif" /><img 
                id="Codehighlighter1_4_77_Closed_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_4_77_Closed_Text.style.display='none'; Codehighlighter1_4_77_Open_Image.style.display='inline'; Codehighlighter1_4_77_Open_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif" /><span 
                style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                id="Codehighlighter1_4_77_Closed_Text" 
                style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)">/**/</span><span 
                id="Codehighlighter1_4_77_Open_Text"><span style="COLOR: rgb(128,128,128)">///</span><span 
                style="COLOR: rgb(0,128,0)">&nbsp;</span><span style="COLOR: rgb(128,128,128)">&lt;summary&gt;</span><span 
                style="COLOR: rgb(0,128,0)"><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(128,128,128)">///</span><span style="COLOR: rgb(0,128,0)">&nbsp;DefaultIfEmpty&nbsp;-&nbsp;查询结果为空则返回默认值；延迟<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(128,128,128)">///</span><span style="COLOR: rgb(0,128,0)">&nbsp;</span><span 
                style="COLOR: rgb(128,128,128)">&lt;/summary&gt;</span></span><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /><span 
                style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: rgb(0,0,255)">void</span><span 
                style="COLOR: rgb(0,0,0)">&nbsp;Summary_DefaultIfEmpty()<br />
            <img id="Codehighlighter1_116_391_Open_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_116_391_Open_Text.style.display='none'; Codehighlighter1_116_391_Closed_Image.style.display='inline'; Codehighlighter1_116_391_Closed_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif" /><img 
                id="Codehighlighter1_116_391_Closed_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_116_391_Closed_Text.style.display='none'; Codehighlighter1_116_391_Open_Image.style.display='inline'; Codehighlighter1_116_391_Open_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                id="Codehighlighter1_116_391_Closed_Text" 
                style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)"><img 
                alt="" src="http://www.cnblogs.com/Images/dot.gif" /></span><span 
                id="Codehighlighter1_116_391_Open_Text"><span style="COLOR: rgb(0,0,0)">{<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;list&nbsp;=&nbsp;(from&nbsp;a&nbsp;</span><span 
                style="COLOR: rgb(0,0,255)">in</span><span style="COLOR: rgb(0,0,0)">&nbsp;_ary<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;where&nbsp;a.Length&nbsp;&gt;&nbsp;100<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;select&nbsp;a).DefaultIfEmpty(&quot;xxx&quot;);<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" /><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(0,0,255)">foreach</span><span style="COLOR: rgb(0,0,0)">&nbsp;(</span><span 
                style="COLOR: rgb(0,0,255)">string</span><span style="COLOR: rgb(0,0,0)">&nbsp;s&nbsp;</span><span 
                style="COLOR: rgb(0,0,255)">in</span><span style="COLOR: rgb(0,0,0)">&nbsp;list)<br />
            <img id="Codehighlighter1_291_347_Open_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_291_347_Open_Text.style.display='none'; Codehighlighter1_291_347_Closed_Image.style.display='inline'; Codehighlighter1_291_347_Closed_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" /><img 
                id="Codehighlighter1_291_347_Closed_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_291_347_Closed_Text.style.display='none'; Codehighlighter1_291_347_Open_Image.style.display='inline'; Codehighlighter1_291_347_Open_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                id="Codehighlighter1_291_347_Closed_Text" 
                style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)"><img 
                alt="" src="http://www.cnblogs.com/Images/dot.gif" /></span><span 
                id="Codehighlighter1_291_347_Open_Text"><span style="COLOR: rgb(0,0,0)">{<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;result.InnerHtml&nbsp;+=&nbsp;s&nbsp;+&nbsp;&quot;&lt;br&nbsp;/&gt;&quot;;<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span 
                style="COLOR: rgb(0,0,0)"><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;result.InnerHtml&nbsp;+=&nbsp;&quot;&lt;br&nbsp;/&gt;&quot;;<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" />&nbsp;&nbsp;&nbsp;&nbsp;}</span></span></div>
        运行结果<br />
        xxx<br />
        <br />
        <font face="Verdana">SequenceEqual - 判断两个集合是否相同；不延迟</font><br />
        <div style="BORDER-RIGHT: rgb(204,204,204) 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: rgb(204,204,204) 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: rgb(204,204,204) 1px solid; WIDTH: 98%; PADDING-TOP: 4px; BORDER-BOTTOM: rgb(204,204,204) 1px solid; BACKGROUND-COLOR: rgb(238,238,238)">
            <img id="Codehighlighter1_4_75_Open_Image0" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_4_75_Open_Text.style.display='none'; Codehighlighter1_4_75_Closed_Image.style.display='inline'; Codehighlighter1_4_75_Closed_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif" /><img 
                id="Codehighlighter1_4_75_Closed_Image0" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_4_75_Closed_Text.style.display='none'; Codehighlighter1_4_75_Open_Image.style.display='inline'; Codehighlighter1_4_75_Open_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif" /><span 
                style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                id="Codehighlighter1_4_75_Closed_Text0" 
                style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)">/**/</span><span 
                id="Codehighlighter1_4_75_Open_Text0"><span style="COLOR: rgb(128,128,128)">///</span><span 
                style="COLOR: rgb(0,128,0)">&nbsp;</span><span style="COLOR: rgb(128,128,128)">&lt;summary&gt;</span><span 
                style="COLOR: rgb(0,128,0)"><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(128,128,128)">///</span><span style="COLOR: rgb(0,128,0)">&nbsp;SequenceEqual&nbsp;-&nbsp;判断两个集合是否相同；不延迟<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(128,128,128)">///</span><span style="COLOR: rgb(0,128,0)">&nbsp;</span><span 
                style="COLOR: rgb(128,128,128)">&lt;/summary&gt;</span></span><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /><span 
                style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: rgb(0,0,255)">void</span><span 
                style="COLOR: rgb(0,0,0)">&nbsp;Summary_SequenceEqual()<br />
            <img id="Codehighlighter1_113_454_Open_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_113_454_Open_Text.style.display='none'; Codehighlighter1_113_454_Closed_Image.style.display='inline'; Codehighlighter1_113_454_Closed_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif" /><img 
                id="Codehighlighter1_113_454_Closed_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_113_454_Closed_Text.style.display='none'; Codehighlighter1_113_454_Open_Image.style.display='inline'; Codehighlighter1_113_454_Open_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                id="Codehighlighter1_113_454_Closed_Text" 
                style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)"><img 
                alt="" src="http://www.cnblogs.com/Images/dot.gif" /></span><span 
                id="Codehighlighter1_113_454_Open_Text"><span style="COLOR: rgb(0,0,0)">{<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(0,0,255)">bool</span><span style="COLOR: rgb(0,0,0)">&nbsp;b&nbsp;=&nbsp;(from&nbsp;a&nbsp;</span><span 
                style="COLOR: rgb(0,0,255)">in</span><span style="COLOR: rgb(0,0,0)">&nbsp;_ary<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;where&nbsp;a.Length&nbsp;&gt;&nbsp;10<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;select&nbsp;a).SequenceEqual(from&nbsp;a&nbsp;</span><span 
                style="COLOR: rgb(0,0,255)">in</span><span style="COLOR: rgb(0,0,0)">&nbsp;_ary<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;where&nbsp;a.Length&nbsp;&gt;&nbsp;10<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;select&nbsp;a);<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" /><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;result.InnerHtml&nbsp;+=&nbsp;b.ToString()&nbsp;+&nbsp;&quot;&lt;br&nbsp;/&gt;&quot;;<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;result.InnerHtml&nbsp;+=&nbsp;&quot;&lt;br&nbsp;/&gt;&quot;;<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" />&nbsp;&nbsp;&nbsp;&nbsp;}</span></span></div>
        运行结果<br />
        True<br />
        <br />
        <font face="Verdana">OfType - 过滤集合中的指定类型；延迟</font><br />
        <div style="BORDER-RIGHT: rgb(204,204,204) 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: rgb(204,204,204) 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: rgb(204,204,204) 1px solid; WIDTH: 98%; PADDING-TOP: 4px; BORDER-BOTTOM: rgb(204,204,204) 1px solid; BACKGROUND-COLOR: rgb(238,238,238)">
            <img id="Codehighlighter1_4_67_Open_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_4_67_Open_Text.style.display='none'; Codehighlighter1_4_67_Closed_Image.style.display='inline'; Codehighlighter1_4_67_Closed_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif" /><img 
                id="Codehighlighter1_4_67_Closed_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_4_67_Closed_Text.style.display='none'; Codehighlighter1_4_67_Open_Image.style.display='inline'; Codehighlighter1_4_67_Open_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif" /><span 
                style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                id="Codehighlighter1_4_67_Closed_Text" 
                style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)">/**/</span><span 
                id="Codehighlighter1_4_67_Open_Text"><span style="COLOR: rgb(128,128,128)">///</span><span 
                style="COLOR: rgb(0,128,0)">&nbsp;</span><span style="COLOR: rgb(128,128,128)">&lt;summary&gt;</span><span 
                style="COLOR: rgb(0,128,0)"><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(128,128,128)">///</span><span style="COLOR: rgb(0,128,0)">&nbsp;OfType&nbsp;-&nbsp;过滤集合中的指定类型；延迟<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(128,128,128)">///</span><span style="COLOR: rgb(0,128,0)">&nbsp;</span><span 
                style="COLOR: rgb(128,128,128)">&lt;/summary&gt;</span></span><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /><span 
                style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: rgb(0,0,255)">void</span><span 
                style="COLOR: rgb(0,0,0)">&nbsp;Summary_OfType()<br />
            <img id="Codehighlighter1_98_345_Open_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_98_345_Open_Text.style.display='none'; Codehighlighter1_98_345_Closed_Image.style.display='inline'; Codehighlighter1_98_345_Closed_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif" /><img 
                id="Codehighlighter1_98_345_Closed_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_98_345_Closed_Text.style.display='none'; Codehighlighter1_98_345_Open_Image.style.display='inline'; Codehighlighter1_98_345_Open_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                id="Codehighlighter1_98_345_Closed_Text" 
                style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)"><img 
                alt="" src="http://www.cnblogs.com/Images/dot.gif" /></span><span 
                id="Codehighlighter1_98_345_Open_Text"><span style="COLOR: rgb(0,0,0)">{<br />
            <img id="Codehighlighter1_127_152_Open_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_127_152_Open_Text.style.display='none'; Codehighlighter1_127_152_Closed_Image.style.display='inline'; Codehighlighter1_127_152_Closed_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" /><img 
                id="Codehighlighter1_127_152_Closed_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_127_152_Closed_Text.style.display='none'; Codehighlighter1_127_152_Open_Image.style.display='inline'; Codehighlighter1_127_152_Open_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(0,0,255)">object</span><span style="COLOR: rgb(0,0,0)">[]&nbsp;objects&nbsp;=&nbsp;</span><span 
                id="Codehighlighter1_127_152_Closed_Text" 
                style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)"><img 
                alt="" src="http://www.cnblogs.com/Images/dot.gif" /></span><span 
                id="Codehighlighter1_127_152_Open_Text"><span style="COLOR: rgb(0,0,0)">{&nbsp;1,&nbsp;&quot;a&quot;,&nbsp;2,&nbsp;&quot;b&quot;,&nbsp;3,&nbsp;&quot;c&quot;&nbsp;}</span></span><span 
                style="COLOR: rgb(0,0,0)">;<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" /><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;list&nbsp;=&nbsp;objects.OfType&lt;</span><span 
                style="COLOR: rgb(0,0,255)">string</span><span style="COLOR: rgb(0,0,0)">&gt;();<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" /><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(0,0,255)">foreach</span><span style="COLOR: rgb(0,0,0)">&nbsp;(</span><span 
                style="COLOR: rgb(0,0,255)">string</span><span style="COLOR: rgb(0,0,0)">&nbsp;s&nbsp;</span><span 
                style="COLOR: rgb(0,0,255)">in</span><span style="COLOR: rgb(0,0,0)">&nbsp;list)<br />
            <img id="Codehighlighter1_245_301_Open_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_245_301_Open_Text.style.display='none'; Codehighlighter1_245_301_Closed_Image.style.display='inline'; Codehighlighter1_245_301_Closed_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" /><img 
                id="Codehighlighter1_245_301_Closed_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_245_301_Closed_Text.style.display='none'; Codehighlighter1_245_301_Open_Image.style.display='inline'; Codehighlighter1_245_301_Open_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                id="Codehighlighter1_245_301_Closed_Text" 
                style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)"><img 
                alt="" src="http://www.cnblogs.com/Images/dot.gif" /></span><span 
                id="Codehighlighter1_245_301_Open_Text"><span style="COLOR: rgb(0,0,0)">{<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;result.InnerHtml&nbsp;+=&nbsp;s&nbsp;+&nbsp;&quot;&lt;br&nbsp;/&gt;&quot;;<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span 
                style="COLOR: rgb(0,0,0)"><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;result.InnerHtml&nbsp;+=&nbsp;&quot;&lt;br&nbsp;/&gt;&quot;;<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" />&nbsp;&nbsp;&nbsp;&nbsp;}</span></span></div>
        运行结果<br />
        <font face="Verdana">a<br />
        b<br />
        c<br />
        <br />
        ToArray - 将集合转换为数组；不延迟<br />
        </font>
        <div style="BORDER-RIGHT: rgb(204,204,204) 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: rgb(204,204,204) 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: rgb(204,204,204) 1px solid; WIDTH: 98%; PADDING-TOP: 4px; BORDER-BOTTOM: rgb(204,204,204) 1px solid; BACKGROUND-COLOR: rgb(238,238,238)">
            <img id="Codehighlighter1_4_67_Open_Image0" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_4_67_Open_Text.style.display='none'; Codehighlighter1_4_67_Closed_Image.style.display='inline'; Codehighlighter1_4_67_Closed_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif" /><img 
                id="Codehighlighter1_4_67_Closed_Image0" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_4_67_Closed_Text.style.display='none'; Codehighlighter1_4_67_Open_Image.style.display='inline'; Codehighlighter1_4_67_Open_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif" /><span 
                style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                id="Codehighlighter1_4_67_Closed_Text0" 
                style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)">/**/</span><span 
                id="Codehighlighter1_4_67_Open_Text0"><span style="COLOR: rgb(128,128,128)">///</span><span 
                style="COLOR: rgb(0,128,0)">&nbsp;</span><span style="COLOR: rgb(128,128,128)">&lt;summary&gt;</span><span 
                style="COLOR: rgb(0,128,0)"><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(128,128,128)">///</span><span style="COLOR: rgb(0,128,0)">&nbsp;ToArray&nbsp;-&nbsp;将集合转换为数组；不延迟<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(128,128,128)">///</span><span style="COLOR: rgb(0,128,0)">&nbsp;</span><span 
                style="COLOR: rgb(128,128,128)">&lt;/summary&gt;</span></span><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /><span 
                style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: rgb(0,0,255)">void</span><span 
                style="COLOR: rgb(0,0,0)">&nbsp;Summary_ToArray()<br />
            <img id="Codehighlighter1_99_405_Open_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_99_405_Open_Text.style.display='none'; Codehighlighter1_99_405_Closed_Image.style.display='inline'; Codehighlighter1_99_405_Closed_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif" /><img 
                id="Codehighlighter1_99_405_Closed_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_99_405_Closed_Text.style.display='none'; Codehighlighter1_99_405_Open_Image.style.display='inline'; Codehighlighter1_99_405_Open_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                id="Codehighlighter1_99_405_Closed_Text" 
                style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)"><img 
                alt="" src="http://www.cnblogs.com/Images/dot.gif" /></span><span 
                id="Codehighlighter1_99_405_Open_Text"><span style="COLOR: rgb(0,0,0)">{<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(0,0,255)">string</span><span style="COLOR: rgb(0,0,0)">[]&nbsp;ary&nbsp;=&nbsp;(from&nbsp;p&nbsp;</span><span 
                style="COLOR: rgb(0,0,255)">in</span><span style="COLOR: rgb(0,0,0)">&nbsp;_ctx.Products<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;where&nbsp;p.ProductName.Length&nbsp;&gt;&nbsp;30<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;select&nbsp;p.ProductName).ToArray();<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" /><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(0,0,255)">foreach</span><span style="COLOR: rgb(0,0,0)">&nbsp;(</span><span 
                style="COLOR: rgb(0,0,255)">string</span><span style="COLOR: rgb(0,0,0)">&nbsp;s&nbsp;</span><span 
                style="COLOR: rgb(0,0,255)">in</span><span style="COLOR: rgb(0,0,0)">&nbsp;ary)<br />
            <img id="Codehighlighter1_305_361_Open_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_305_361_Open_Text.style.display='none'; Codehighlighter1_305_361_Closed_Image.style.display='inline'; Codehighlighter1_305_361_Closed_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" /><img 
                id="Codehighlighter1_305_361_Closed_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_305_361_Closed_Text.style.display='none'; Codehighlighter1_305_361_Open_Image.style.display='inline'; Codehighlighter1_305_361_Open_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                id="Codehighlighter1_305_361_Closed_Text" 
                style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)"><img 
                alt="" src="http://www.cnblogs.com/Images/dot.gif" /></span><span 
                id="Codehighlighter1_305_361_Open_Text"><span style="COLOR: rgb(0,0,0)">{<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;result.InnerHtml&nbsp;+=&nbsp;s&nbsp;+&nbsp;&quot;&lt;br&nbsp;/&gt;&quot;;<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span 
                style="COLOR: rgb(0,0,0)"><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;result.InnerHtml&nbsp;+=&nbsp;&quot;&lt;br&nbsp;/&gt;&quot;;<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" />&nbsp;&nbsp;&nbsp;&nbsp;}</span></span></div>
        运行结果<br />
        <font face="Verdana">Jack&#39;s New England Clam Chowder<br />
        Louisiana Fiery Hot Pepper Sauce<br />
        Original Frankfurter grüne So?e<br />
        Uncle Bob&#39;s Organic Dried Pears<br />
        <br />
        ToList - 将集合转换为List&lt;T&gt;集合；不延迟<br />
        <div style="BORDER-RIGHT: rgb(204,204,204) 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: rgb(204,204,204) 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: rgb(204,204,204) 1px solid; WIDTH: 98%; PADDING-TOP: 4px; BORDER-BOTTOM: rgb(204,204,204) 1px solid; BACKGROUND-COLOR: rgb(238,238,238)">
            <img id="Codehighlighter1_4_73_Open_Image0" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_4_73_Open_Text.style.display='none'; Codehighlighter1_4_73_Closed_Image.style.display='inline'; Codehighlighter1_4_73_Closed_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif" /><img 
                id="Codehighlighter1_4_73_Closed_Image0" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_4_73_Closed_Text.style.display='none'; Codehighlighter1_4_73_Open_Image.style.display='inline'; Codehighlighter1_4_73_Open_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif" /><span 
                style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                id="Codehighlighter1_4_73_Closed_Text0" 
                style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)">/**/</span><span 
                id="Codehighlighter1_4_73_Open_Text0"><span style="COLOR: rgb(128,128,128)">///</span><span 
                style="COLOR: rgb(0,128,0)">&nbsp;</span><span style="COLOR: rgb(128,128,128)">&lt;summary&gt;</span><span 
                style="COLOR: rgb(0,128,0)"><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(128,128,128)">///</span><span style="COLOR: rgb(0,128,0)">&nbsp;ToList&nbsp;-&nbsp;将集合转换为List</span><span 
                style="COLOR: rgb(128,128,128)">&lt;T&gt;</span><span style="COLOR: rgb(0,128,0)">集合；不延迟<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(128,128,128)">///</span><span style="COLOR: rgb(0,128,0)">&nbsp;</span><span 
                style="COLOR: rgb(128,128,128)">&lt;/summary&gt;</span></span><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /><span 
                style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: rgb(0,0,255)">void</span><span 
                style="COLOR: rgb(0,0,0)">&nbsp;Summary_ToList()<br />
            <img id="Codehighlighter1_104_365_Open_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_104_365_Open_Text.style.display='none'; Codehighlighter1_104_365_Closed_Image.style.display='inline'; Codehighlighter1_104_365_Closed_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif" /><img 
                id="Codehighlighter1_104_365_Closed_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_104_365_Closed_Text.style.display='none'; Codehighlighter1_104_365_Open_Image.style.display='inline'; Codehighlighter1_104_365_Open_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                id="Codehighlighter1_104_365_Closed_Text" 
                style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)"><img 
                alt="" src="http://www.cnblogs.com/Images/dot.gif" /></span><span 
                id="Codehighlighter1_104_365_Open_Text"><span style="COLOR: rgb(0,0,0)">{<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;list&nbsp;=&nbsp;(from&nbsp;a&nbsp;</span><span 
                style="COLOR: rgb(0,0,255)">in</span><span style="COLOR: rgb(0,0,0)">&nbsp;_ary<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;where&nbsp;a.Length&nbsp;&gt;&nbsp;10<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;select&nbsp;a).ToList();<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" /><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(0,0,255)">foreach</span><span style="COLOR: rgb(0,0,0)">&nbsp;(</span><span 
                style="COLOR: rgb(0,0,255)">string</span><span style="COLOR: rgb(0,0,0)">&nbsp;s&nbsp;</span><span 
                style="COLOR: rgb(0,0,255)">in</span><span style="COLOR: rgb(0,0,0)">&nbsp;list)<br />
            <img id="Codehighlighter1_265_321_Open_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_265_321_Open_Text.style.display='none'; Codehighlighter1_265_321_Closed_Image.style.display='inline'; Codehighlighter1_265_321_Closed_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" /><img 
                id="Codehighlighter1_265_321_Closed_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_265_321_Closed_Text.style.display='none'; Codehighlighter1_265_321_Open_Image.style.display='inline'; Codehighlighter1_265_321_Open_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                id="Codehighlighter1_265_321_Closed_Text" 
                style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)"><img 
                alt="" src="http://www.cnblogs.com/Images/dot.gif" /></span><span 
                id="Codehighlighter1_265_321_Open_Text"><span style="COLOR: rgb(0,0,0)">{<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;result.InnerHtml&nbsp;+=&nbsp;s&nbsp;+&nbsp;&quot;&lt;br&nbsp;/&gt;&quot;;<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span 
                style="COLOR: rgb(0,0,0)"><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;result.InnerHtml&nbsp;+=&nbsp;&quot;&lt;br&nbsp;/&gt;&quot;;<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" />&nbsp;&nbsp;&nbsp;&nbsp;}</span></span></div>
        </font>运行结果<br />
        <font face="Verdana">silverlight<br />
        asp.net ajax</font><br />
        <br />
        <font face="Verdana">ToDictionary - 将集合转换为&lt;K, V&gt;集合；不延迟</font><br />
        <div style="BORDER-RIGHT: rgb(204,204,204) 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: rgb(204,204,204) 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: rgb(204,204,204) 1px solid; WIDTH: 98%; PADDING-TOP: 4px; BORDER-BOTTOM: rgb(204,204,204) 1px solid; BACKGROUND-COLOR: rgb(238,238,238)">
            <img id="Codehighlighter1_4_78_Open_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_4_78_Open_Text.style.display='none'; Codehighlighter1_4_78_Closed_Image.style.display='inline'; Codehighlighter1_4_78_Closed_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif" /><img 
                id="Codehighlighter1_4_78_Closed_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_4_78_Closed_Text.style.display='none'; Codehighlighter1_4_78_Open_Image.style.display='inline'; Codehighlighter1_4_78_Open_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif" /><span 
                style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                id="Codehighlighter1_4_78_Closed_Text" 
                style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)">/**/</span><span 
                id="Codehighlighter1_4_78_Open_Text"><span style="COLOR: rgb(128,128,128)">///</span><span 
                style="COLOR: rgb(0,128,0)">&nbsp;</span><span style="COLOR: rgb(128,128,128)">&lt;summary&gt;</span><span 
                style="COLOR: rgb(0,128,0)"><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(128,128,128)">///</span><span style="COLOR: rgb(0,128,0)">&nbsp;ToDictionary&nbsp;-&nbsp;将集合转换为</span><span 
                style="COLOR: rgb(128,128,128)">&lt;K,&nbsp;V&gt;</span><span 
                style="COLOR: rgb(0,128,0)">集合；不延迟<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(128,128,128)">///</span><span style="COLOR: rgb(0,128,0)">&nbsp;</span><span 
                style="COLOR: rgb(128,128,128)">&lt;/summary&gt;</span></span><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" /><span 
                style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: rgb(0,0,255)">void</span><span 
                style="COLOR: rgb(0,0,0)">&nbsp;Summary_ToDictionary()<br />
            <img id="Codehighlighter1_115_444_Open_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_115_444_Open_Text.style.display='none'; Codehighlighter1_115_444_Closed_Image.style.display='inline'; Codehighlighter1_115_444_Closed_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif" /><img 
                id="Codehighlighter1_115_444_Closed_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_115_444_Closed_Text.style.display='none'; Codehighlighter1_115_444_Open_Image.style.display='inline'; Codehighlighter1_115_444_Open_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                id="Codehighlighter1_115_444_Closed_Text" 
                style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)"><img 
                alt="" src="http://www.cnblogs.com/Images/dot.gif" /></span><span 
                id="Codehighlighter1_115_444_Open_Text"><span style="COLOR: rgb(0,0,0)">{<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;dic&nbsp;=&nbsp;(from&nbsp;p&nbsp;</span><span 
                style="COLOR: rgb(0,0,255)">in</span><span style="COLOR: rgb(0,0,0)">&nbsp;_ctx.Products<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;where&nbsp;p.ProductName.Length&nbsp;&gt;&nbsp;30<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;select&nbsp;p).ToDictionary(p&nbsp;=&gt;&nbsp;p.ProductID);<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" /><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                style="COLOR: rgb(0,0,255)">foreach</span><span style="COLOR: rgb(0,0,0)">&nbsp;(var&nbsp;p&nbsp;</span><span 
                style="COLOR: rgb(0,0,255)">in</span><span style="COLOR: rgb(0,0,0)">&nbsp;dic)<br />
            <img id="Codehighlighter1_312_400_Open_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_312_400_Open_Text.style.display='none'; Codehighlighter1_312_400_Closed_Image.style.display='inline'; Codehighlighter1_312_400_Closed_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" /><img 
                id="Codehighlighter1_312_400_Closed_Image" align="top" alt="" 
                onclick="this.style.display='none'; Codehighlighter1_312_400_Closed_Text.style.display='none'; Codehighlighter1_312_400_Open_Image.style.display='inline'; Codehighlighter1_312_400_Open_Text.style.display='inline';" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
                id="Codehighlighter1_312_400_Closed_Text" 
                style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)"><img 
                alt="" src="http://www.cnblogs.com/Images/dot.gif" /></span><span 
                id="Codehighlighter1_312_400_Open_Text"><span style="COLOR: rgb(0,0,0)">{<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;result.InnerHtml&nbsp;+=&nbsp;p.Key&nbsp;+&nbsp;&quot;：&quot;&nbsp;+&nbsp;p.Value.ProductName&nbsp;+&nbsp;&quot;&lt;br&nbsp;/&gt;&quot;;<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span 
                style="COLOR: rgb(0,0,0)"><br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;result.InnerHtml&nbsp;+=&nbsp;&quot;&lt;br&nbsp;/&gt;&quot;;<br />
            <img align="top" alt="" 
                src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" />&nbsp;&nbsp;&nbsp;&nbsp;}</span></span></div>
        运行结果<br />
        <font face="Verdana">7：Uncle Bob&#39;s Organic Dried Pears<br />
        41：Jack&#39;s New England Clam Chowder<br />
        65：Louisiana Fiery Hot Pepper Sauce<br />
        77：Original Frankfurter grüne So?e</font><br />
        <br />
        <br />
        OK<br />
        <a href="http://www.cnblogs.com/Files/webabcd/VS2008.rar">[源码下载]</a>
    
    </div>
    </form>
</body>
</html>
